<?php

	namespace app\home\controller;

	use app\home\model\Banner as bannerModel;
	use think\Db;

	class Banner extends Base
	{

		public function index () {
			$bannerModel = new bannerModel();

			$banner = $bannerModel->field('id,images,createtime')->find();

			if (!empty($banner)) {
				return success($banner);
			}

			return error('请联系管理员添加轮播图片');
		}


	}
